#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2010 - BidiX@BidiX.info
#
#
'''
    home - display home page
    
    Description : Extend the Page class
 
     Usage : 
     
'''
from google.appengine.ext import webapp
from google.appengine.ext import db
from bidix.html.article import ArticlePage
from bidix.db import Article


class Home(ArticlePage):
    '''
    classdocs
    '''

    def initialize_page(self):
        self.title = "Home"

    def format_menu(self):
        menu = """<a href="/">Home</a>"""
        return menu

    def format_main(self):
        home = Article.get_by_name('home')
        main = home.text
        return main
    
                                        